import { lazy } from "react";

const router = [
    {
        path:'/home',
        component:lazy(()=>import('../page/home/Home')),
        children:[
            {
                path:'/home/index',
                component:lazy(()=>import('../page/home/index/Index'))
            },
            {
                path:'/home/guangguang',
                component:lazy(()=>import('../page/home/guangguang/Guangguang'))
            },
            {
                path:"/home/shopcar",
                component:lazy(()=>import('../page/home/shopcar/Shopcar'))
            },
            {
                path:'/home/my',
                component:lazy(()=>import('../page/home/my/My'))
            },
            {
                path:'/home',
                to:'/home/index'
            }
        ]
    },
    {
        path:"/classfig",
        component:lazy(()=>import('../page/classfigs/Classfig'))
    },
    {
        path:'/login',
        component:lazy(()=>import('../page/Login/Login'))
    },
    {
        path:'/postun',
        component:lazy(()=>import('../page/postun/Postun'))
    },
    {
        path:'/',
        to:'/home'
    }
]

export default router




